import { Form, Input } from 'antd';

const SuperDictForm = ({ form, isEditing }) => {
  return (
    <Form form={form} layout="vertical">
      <Form.Item 
        name="id" 
        hidden
      >
        <Input />
      </Form.Item>
      <Form.Item 
        name="dictCode" 
        label="字典编码"
        rules={[{ required: true, message: '请输入字典编码' }]}
      >
        <Input disabled={isEditing} placeholder="请输入字典编码" />
      </Form.Item>
      <Form.Item 
        name="tableName" 
        label="表名" 
        rules={[{ required: true, message: '请输入表名' }]}
      >
        <Input placeholder="请输入表名" />
      </Form.Item>
      <Form.Item 
        name="label" 
        label="标签" 
        rules={[{ required: true, message: '请输入标签' }]}
      >
        <Input placeholder="请输入标签" />
      </Form.Item>
      <Form.Item 
        name="value" 
        label="值" 
        rules={[{ required: true, message: '请输入值' }]}
      >
        <Input placeholder="请输入值" />
      </Form.Item>
      <Form.Item 
        name="conditions" 
        label="条件" 
      >
        <Input placeholder="请输入条件" />
      </Form.Item>
      <Form.Item name="remark" label="备注">
        <Input.TextArea placeholder="请输入备注" rows={4} />
      </Form.Item>
    </Form>
  );
};

export default SuperDictForm;